{% set fsf_step = "install" %}
{% extends "first-snap/_layout_fsf.html" %}

{% block fsf_content %}
  <div class="row">
    <p>Now we'll set up Snapcraft, the tool for building snaps.</p>
    <h4>What operating system are you developing on?</h4>
  </div>
  <div class="row">
    <div class="col-small-2 col-medium-2 col-2 col-logo">
      <span class="p-logo-link p-card u-align-text--center js-os-select" data-os="linux">
        <header class="p-card__header">
          <img src="https://assets.ubuntu.com/v1/e95bac0c-tux.svg" alt="">
        </header>
        <span>Linux</span>
      </span>
    </div>
    <div class="col-small-2 col-medium-2 col-2 col-logo">
      <span class="p-logo-link p-card u-align-text--center js-os-select" data-os="macos">
        <header class="p-card__header">
          <img src="https://assets.ubuntu.com/v1/236f314d-macos.svg" alt="">
        </header>
        <span>macOS</span>
      </span>
    </div>
    <div class="col-small-2 col-medium-2 col-2 col-logo">
      <span class="p-logo-link p-card u-align-text--center is-disabled" data-os="windows">
        <header class="p-card__header">
          <img src="https://assets.ubuntu.com/v1/a9bfe4c5-win.svg" alt="">
        </header>
        <span>Windows</span>
      </span>
    </div>
  </div>

  {% include "first-snap/_install-linux.html" %}
  {% include "first-snap/_install-macos.html" %}
  {% include "first-snap/_install-windows.html" %}
{% endblock %}

{% block fsf_pagination %}
  <a class="p-button--neutral" href="/first-snap/">
    &lsaquo; Previous: Select language
  </a>

  <a class="p-button--positive is--disabled u-float-right" id="js-pagination-next">
    Next: Package snap &rsaquo;
  </a>
{% endblock %}

{% block scripts %}
  <script>
    window.addEventListener("DOMContentLoaded", function() {
      Raven.context(function() {
        snapcraft.public.firstSnapFlow.install({{ language|tojson }});
      });
    });
  </script>
  {{ super() }}
{% endblock %}
